package com.java.control;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class JumpU 跳转页面（通用页面）
 */
@WebServlet("/JumpU")
public class JumpU extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		// 进入查询页面之前清理session中缓存的之前的查询结果
		// 清空session缓存中的查询结果集（如果有的话）
		request.getSession().removeAttribute("lstQueryUserInfos");
		// 获取表单参数
		String pg = request.getParameter("pg");
		// 跳转到页面pg
		request.getRequestDispatcher(pg).forward(request, response);
	}

}
